Optimal. Leaf size=43 \[ -\frac{\log (x) (b c-a d)}{a^2}+\frac{(b c-a d) \log (a+b x)}{a^2}-\frac{c}{a x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0290796, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.062, Rules used = {77} \[ -\frac{\log (x) (b c-a d)}{a^2}+\frac{(b c-a d) \log (a+b x)}{a^2}-\frac{c}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rubi steps
\begin{align*} \int \frac{c+d x}{x^2 (a+b x)} \, dx &=\int \left (\frac{c}{a x^2}+\frac{-b c+a d}{a^2 x}-\frac{b (-b c+a d)}{a^2 (a+b x)}\right ) \, dx\\ &=-\frac{c}{a x}-\frac{(b c-a d) \log (x)}{a^2}+\frac{(b c-a d) \log (a+b x)}{a^2}\\ \end{align*}
Mathematica [A] time = 0.0164427, size = 42, normalized size = 0.98 \[ \frac{\log (x) (a d-b c)}{a^2}+\frac{(b c-a d) \log (a+b x)}{a^2}-\frac{c}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 51, normalized size = 1.2 \begin{align*} -{\frac{c}{ax}}+{\frac{\ln \left ( x \right ) d}{a}}-{\frac{b\ln \left ( x \right ) c}{{a}^{2}}}-{\frac{\ln \left ( bx+a \right ) d}{a}}+{\frac{\ln \left ( bx+a \right ) bc}{{a}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.04522, size = 58, normalized size = 1.35 \begin{align*} \frac{{\left (b c - a d\right )} \log \left (b x + a\right )}{a^{2}} - \frac{{\left (b c - a d\right )} \log \left (x\right )}{a^{2}} - \frac{c}{a x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.97221, size = 90, normalized size = 2.09 \begin{align*} \frac{{\left (b c - a d\right )} x \log \left (b x + a\right ) -{\left (b c - a d\right )} x \log \left (x\right ) - a c}{a^{2} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.620552, size = 95, normalized size = 2.21 \begin{align*} - \frac{c}{a x} + \frac{\left (a d - b c\right ) \log{\left (x + \frac{a^{2} d - a b c - a \left (a d - b c\right )}{2 a b d - 2 b^{2} c} \right )}}{a^{2}} - \frac{\left (a d - b c\right ) \log{\left (x + \frac{a^{2} d - a b c + a \left (a d - b c\right )}{2 a b d - 2 b^{2} c} \right )}}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20716, size = 69, normalized size = 1.6 \begin{align*} -\frac{{\left (b c - a d\right )} \log \left ({\left | x \right |}\right )}{a^{2}} - \frac{c}{a x} + \frac{{\left (b^{2} c - a b d\right )} \log \left ({\left | b x + a \right |}\right )}{a^{2} b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]